package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Param;
import org.aspectj.weaver.ast.Or;
import org.csu.mypetstore.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Order> getOrdersByUsername(String username);

    Order getOrder(int orderId);

    void insertOrder(Order order);

    void insertOrderStatus(Order order);

    List<Order> getAllOrder();

    void deleteorder(String orderid);

    List<Order> searchorder(String keyword);
    void deliveryorder(@Param("orderId") String orderId, @Param("status")String status);


}
